

/* Instantiate the popup on DOMReady, and enhance its contents 
$(function(){
    $( "#popup-outside-page" ).enhanceWithin().popup();
});
*/

$(document).ready(function() {
	
	$( "#defaultpanel" ).load('../views/menu.html',function(responseTxt,statusTxt,xhr){
    if(statusTxt=="success")
		//$( "#mypanel" ).trigger( "updatelayout" );
		$( "#defaultpanel" ).page();
		//alert("External content loaded successfully!");
    if(statusTxt=="error")
      alert("Error: "+xhr.status+": "+xhr.statusText);
  });
  /*
    $("#menuButton").click(function(){
		alert("hola");
		//$( "#defaultpanel" ).trigger( "updatelayout" );
		$("#menuList").listview("refresh");
		alert("hola");
	});
*/

	


});


